ObjectDB ObjectDB

jdoCopyFields(other, fieldNumbers) - JDO PersistenceCapable's method

Method
javax.jdo.spi.PersistenceCapable
void jdoCopyFields(
  Object other,
  int[] fieldNumbers
)

Copy field values from another instance of the same class to this instance.

This method will throw an exception if the other instance is not managed by the same StateManager as this instance.

Parameters:
other - the PC instance from which field values are to be copied
fieldNumbers - the field numbers to be copied into this instance
Since:
JDO 1.0